package com.tuanzi.loan.web.lazy.collaborate;

import com.tuanzi.loan.business.service.statistics.AdverChannelTypeUserService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.Collaborate.CollaborateAdvertiseConfigListRequest;
import com.tuanzi.loan.vo.response.collaborate.CollaborateAdvertiseConfigListResponse;
import com.tuanzi.loan.web.bean.CurrentUserBean;
import com.tuanzi.loan.web.lazy.LazyDataSessionModel;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 15:05 2018/9/18
 * Description:
 */
public class CollaborateAdvertiseConfigListLazyDataModel extends LazyDataSessionModel<CollaborateAdvertiseConfigListRequest, CollaborateAdvertiseConfigListResponse> {

    private static final long serialVersionUID = 2309796618522459747L;

    private AdverChannelTypeUserService adverChannelTypeUserService;

    public CollaborateAdvertiseConfigListLazyDataModel(CollaborateAdvertiseConfigListRequest searchRequest,CurrentUserBean session, AdverChannelTypeUserService adverChannelTypeUserService) {
        super(searchRequest, session);
        this.adverChannelTypeUserService = adverChannelTypeUserService;
    }

    @Override
    protected Page<CollaborateAdvertiseConfigListResponse> doLoad0(PageSearcher<CollaborateAdvertiseConfigListRequest> pageSearcher) {
        return adverChannelTypeUserService.list(pageSearcher);
    }

}
